//
//  UIView+Extension.swift
//  weibo19
//
//  Created by Arvin on 15/11/16.
//  Copyright © 2015年 Arvin. All rights reserved.
//

import UIKit

extension UIView {
    
    func NavigitionController() -> UINavigationController? {
        var next = self.nextResponder()
        repeat {
        if next is UINavigationController {
            return next as? UINavigationController
            }
           next = next?.nextResponder()
        } while (next != nil)
        return nil
    }
}
